/**
 * Created by scott on 2017/3/23.
 */

var express = require('express');

var app = express();

app.get('/', function (req, res) {

    res.send('hello world!')

});

var server = app.listen(3000, function () {

    var host = server.address().address;

    var port = server.address().port;

    console.log('server : http://%s:%s', host, port);

});